package com.code.day06;

/**
 * 三层架构主要是
 * controller
 * service
 * dao
 * <p>
 * utils
 * pojo
 */
public class Demo01Method {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        /**
         * a代表的 10
         * b 代表的 20
         * 被传递到了 method 方法中
         */
        System.out.println("method(a, b) = " + method(a, b));
    }

    public static int method(int a, int b) {
        System.out.println("a = " + a);
        System.out.println("b = " + b);
        System.out.println("a + b =  " + (a + b));
        return a + b;
    }
}
